package com.service;

import com.pojo.TbUser;

import java.sql.SQLException;

public interface UserService {

    //添加用户,通过此业务可以实现注册
    void addUser(TbUser user) throws SQLException;

    int active(String username,String code) throws SQLException;

    TbUser login(String username, String password) throws SQLException;
}
